package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.KpiMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.Kpi;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.KpiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KpiServiceImpl implements KpiService {
    @Autowired
    private KpiMapper kpiMapper;

    @Override
    public List<Kpi> selectAll() {
        return kpiMapper.selectAll();
    }

    @Override
    public int insert(Kpi kpi) {
        return kpiMapper.insert(kpi);
    }
}
